import { Component, OnInit } from '@angular/core';
import { CarService } from '../car.service';
import {utcToDate} from '../../assets/js/utils'

@Component({
  selector: 'app-order-list',
  templateUrl: './order-list.component.html',
  styleUrls: ['./order-list.component.less']
})
export class OrderListComponent implements OnInit {

  utcToDate = utcToDate;

  constructor(private car: CarService) {
    this.car.getOrder()
  }

  get lists() {
    return this.car.order.data;
  }

  get requestSent() {
    return this.car.order.requestSent;
  }


  ngOnInit() {
  }

}
